package com.example.warehouse.bus.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author 欧胤
 * @version 1.0
 * @description: 进货表实体类
 * @date 2023/6/30 9:15
 */
@Data
@TableName("bus_inport")
public class BusInport implements Serializable {
    @ExcelProperty(value = "数据ID",index = 0)
    @TableId(type = IdType.AUTO)
    private Integer id;                       // 数据ID

    @ExcelProperty(value = "支付类型",index = 1)
    private String payType;                   // 支付类型

    @ExcelProperty(value = "进货时间",index = 2)
    private Date inportTime;                  // 进货时间

    @ExcelProperty(value = "操作员",index = 3)
    private String operatePerson;             // 操作员

    @ExcelProperty(value = "进货数量",index = 4)
    private Integer number;                   // 进货数量

    @ExcelProperty(value = "备注",index = 5)
    private String description;               // 备注

    @ExcelProperty(value = "进货价格",index = 6)
    private Double inportPrice;               // 进货价格

    @ExcelProperty(value = "供应商ID",index = 7)
    private Integer providerId;               // 供应商ID

    @ExcelProperty(value = "商品ID",index = 8)
    private Integer goodsId;                  // 商品ID

    @ApiModelProperty(value = "审批状态", example = "0")
    private Integer approvalStatus;            // 审批状态

    @ApiModelProperty(value = "启用状态", example = "1")
    private Integer enAble;                    // 审批状态

    /**
     * 数据创建时间
     */
    @ExcelProperty(value = "数据创建时间",index = 9)
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    /**
     * 数据最后修改时间
     */
    @ExcelProperty(value = "数据最后修改时间",index = 10)
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
}
